package Service.StatisticalReport.StatisticalReportImpl;

import Dao.StatisticalReportDao.HomeSummaryDao;
import Model.StatisticalReport.Report;
import Model.StatisticalReport.ReportClass;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HomeSummaryService extends AbstractReportService{

    @Resource
    HomeSummaryDao dao;

    private static ReportClass reportClass =  null;//ReportClass.HOME_SUMMARY;

    public HomeSummaryService(){
        super(reportClass);
    }

    @Override
    public int addBatch(List<? extends Report> batch) {
        return dao.addBatch(reportClass.getSchemaName(), batch);
    }
}
